Dynomotion

Group: DynoMotion Message: 6612 From: frank_19_88 Date: 1/28/2013
Subject: A axis and spindle at same channel
Hi,

When I activate A axis within kflop with:
DefineCoordSystem(0,-1,1,2);

And open Mach3 and send gcode:
M3 S100 (spindle start spinning)
Z0
I get an error "buffer starved".(A axis disabled)
If I send:
M5
z0
The z axis move.

When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
M3 s100 (spindle start spinning)
z0 (z axis moves)

The A axis and Spindle are the same channel within the Kflop.(2)
Last week it was working fine, but don't know what I did wrong.

www.hoefon.nl/kflop/turn_xml.xml
www.hoefon.nl/kflop/IntAnaloog.c

With kind regards,

Frank
Group: DynoMotion Message: 6614 From: Tom Kerekes Date: 1/29/2013
Subject: Re: A axis and spindle at same channel
Hi Frank,

A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.

In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.  Note a G1Z0 actually moves all X,Y, and A axes.

In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.

We need to have a means of determining which mode you are in.  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.

But maybe you are using Spindle on and off to switch modes (M3,M4,M5).  M3 and M4 would automatically exclude A from the coordinate system.  And M5 could automatically include it.

You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.

HTH
Regards
TK 


Group: DynoMotion Message: 6616 From: frank_19_88 Date: 1/30/2013
Subject: Re: A axis and spindle at same channel
Hi TK,

I replaced the "spindle program" with "notify.c"
At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.

At the notify I only used 'Move(2,1000)' or 'Move(2,0)';

Do I have to run the sample "spindle program.c" also with mach3?
Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)

I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )

At the moment I can't send the "*.c" programs but I will do it as soon as posible.

With kind regards,

Frank


--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Frank,
>
> A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
>
> In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.  Note a G1Z0 actually moves all X,Y, and A axes.
>
> In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
>
> We need to have a means of determining which mode you are in.  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
>
> But maybe you are using Spindle on and off to switch modes (M3,M4,M5).  M3 and M4 would automatically exclude A from the coordinate system.  And M5 could automatically include it.
>
> You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
>
> HTH
> Regards
> TK 
>
>
>
>
> ________________________________
> From: frank_19_88
> To: DynoMotion@yahoogroups.com
> Sent: Monday, January 28, 2013 11:44 PM
> Subject: [DynoMotion] A axis and spindle at same channel
>
>
>  
> Hi,
>
> When I activate A axis within kflop with:
> DefineCoordSystem(0,-1,1,2);
>
> And open Mach3 and send gcode:
> M3 S100 (spindle start spinning)
> Z0
> I get an error "buffer starved".(A axis disabled)
> If I send:
> M5
> z0
> The z axis move.
>
> When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> M3 s100 (spindle start spinning)
> z0 (z axis moves)
>
> The A axis and Spindle are the same channel within the Kflop.(2)
> Last week it was working fine, but don't know what I did wrong.
>
> www.hoefon.nl/kflop/turn_xml.xml
> www.hoefon.nl/kflop/IntAnaloog.c
>
> With kind regards,
>
> Frank
>
Group: DynoMotion Message: 6617 From: Tom Kerekes Date: 1/30/2013
Subject: Re: A axis and spindle at same channel
Hi Frank,
 
I don't really follow most of that.
 
Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
 
I don't understand why/where the Move(2,2000) Move(2,0) is needed. 
 
Use the DefineCoordSystem command to includ/exclud the A axis.
 
Regards
TK

Group: DynoMotion Message: 6618 From: tapiolarikka Date: 1/30/2013
Subject: Re: A axis and spindle at same channel
Hi Frank/Tom,

I hope you don't mind me jumping in on this, but I have this same thing ahead.

I think this could be:

In the Spindle.c that you are using:

case EX_SPINON:
DefineCoordSystem(0,1,2,-1);

if (Direction==0)
{
printf("Spindle CW ON\n");
}
else if (Direction==1)
{
printf("Spindle CCW ON\n");
}
break;

case EX_SPINOFF:
DefineCoordSystem(0,1,2,3);
// add homing routine for A-axis
printf("Spindle Stop\n");
break;
}


I can't test the above since I haven't found time to get my
KFlop connected.

I hope Tom corrects me if I'm wrong about this.

Rgds,
Tapio



--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Frank,
>  
> I don't really follow most of that.
>  
> Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
>  
> I don't understand why/where the Move(2,2000) Move(2,0) is needed. 
>  
> Use the DefineCoordSystem command to includ/exclud the A axis.
>  
> Regards
> TK
>
>
> ________________________________
> From: frank_19_88
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, January 30, 2013 5:52 AM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>  
> Hi TK,
>
> I replaced the "spindle program" with "notify.c"
> At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
>
> At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
>
> Do I have to run the sample "spindle program.c" also with mach3?
> Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
>
> I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
>
> At the moment I can't send the "*.c" programs but I will do it as soon as posible.
>
> With kind regards,
>
> Frank
>
> --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Frank,
> >
> > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> >
> > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.  Note a G1Z0 actually moves all X,Y, and A axes.
> >
> > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> >
> > We need to have a means of determining which mode you are in.  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> >
> > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).  M3 and M4 would automatically exclude A from the coordinate system.  And M5 could automatically include it.
> >
> > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> >
> > HTH
> > Regards
> > TK 
> >
> >
> >
> >
> > ________________________________
> > From: frank_19_88
> > To: mailto:DynoMotion%40yahoogroups.com
> > Sent: Monday, January 28, 2013 11:44 PM
> > Subject: [DynoMotion] A axis and spindle at same channel
> >
> >
> >  
> > Hi,
> >
> > When I activate A axis within kflop with:
> > DefineCoordSystem(0,-1,1,2);
> >
> > And open Mach3 and send gcode:
> > M3 S100 (spindle start spinning)
> > Z0
> > I get an error "buffer starved".(A axis disabled)
> > If I send:
> > M5
> > z0
> > The z axis move.
> >
> > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > M3 s100 (spindle start spinning)
> > z0 (z axis moves)
> >
> > The A axis and Spindle are the same channel within the Kflop.(2)
> > Last week it was working fine, but don't know what I did wrong.
> >
> > www.hoefon.nl/kflop/turn_xml.xml
> > www.hoefon.nl/kflop/IntAnaloog.c
> >
> > With kind regards,
> >
> > Frank
> >
>
Group: DynoMotion Message: 6619 From: Tom Kerekes Date: 1/30/2013
Subject: Re: A axis and spindle at same channel
Thanks Tapio,

Yes I would think that would work.  But because he has a lathe without any Y axis the calls would be

to exclude A
DefineCoordSystem(0,-1,1,2);

to include A
DefineCoordSystem(0,-1,1,-1);

Regards
TK

Group: DynoMotion Message: 6621 From: tapiolarikka Date: 1/30/2013
Subject: Re: A axis and spindle at same channel
Hi again,

Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?

Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.

Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)

Rgds,
Tapio

--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Thanks Tapio,
>
> Yes I would think that would work.  But because he has a lathe without any Y axis the calls would be
>
> to exclude A
> DefineCoordSystem(0,-1,1,2);
>
>
> to include A
> DefineCoordSystem(0,-1,1,-1);
>
>
> Regards
> TK
>
>
> ________________________________
> From: tapiolarikka
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, January 30, 2013 11:53 AM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>
>  
>
>
> Hi Frank/Tom,
>
> I hope you don't mind me jumping in on this, but I have this same thing ahead.
>
> I think this could be:
>
> In the Spindle.c that you are using:
>
> case EX_SPINON:
> DefineCoordSystem(0,1,2,-1);
>
> if (Direction==0)
> {
> printf("Spindle CW ON\n");
> }
> else if (Direction==1)
> {
> printf("Spindle CCW ON\n");
> }
> break;
>
> case EX_SPINOFF:
> DefineCoordSystem(0,1,2,3);
> // add homing routine for A-axis
> printf("Spindle Stop\n");
> break;
> }
>
> I can't test the above since I haven't found time to get my
> KFlop connected.
>
> I hope Tom corrects me if I'm wrong about this.
>
> Rgds,
> Tapio
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Frank,
> >  
> > I don't really follow most of that.
> >  
> > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> >  
> > I don't understand why/where the Move(2,2000) Move(2,0) is needed. 
> >  
> > Use the DefineCoordSystem command to includ/exclud the A axis.
> >  
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: frank_19_88
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, January 30, 2013 5:52 AM
> > Subject: [DynoMotion] Re: A axis and spindle at same channel
> >
> >  
> > Hi TK,
> >
> > I replaced the "spindle program" with "notify.c"
> > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> >
> > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> >
> > Do I have to run the sample "spindle program.c" also with mach3?
> > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> >
> > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> >
> > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> >
> > With kind regards,
> >
> > Frank
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Frank,
> > >
> > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > >
> > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.  Note a G1Z0 actually moves all X,Y, and A axes.
> > >
> > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > >
> > > We need to have a means of determining which mode you are in.  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > >
> > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).  M3 and M4 would automatically exclude A from the coordinate system.  And M5 could automatically include it.
> > >
> > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > >
> > > HTH
> > > Regards
> > > TK 
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: frank_19_88
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Monday, January 28, 2013 11:44 PM
> > > Subject: [DynoMotion] A axis and spindle at same channel
> > >
> > >
> > >  
> > > Hi,
> > >
> > > When I activate A axis within kflop with:
> > > DefineCoordSystem(0,-1,1,2);
> > >
> > > And open Mach3 and send gcode:
> > > M3 S100 (spindle start spinning)
> > > Z0
> > > I get an error "buffer starved".(A axis disabled)
> > > If I send:
> > > M5
> > > z0
> > > The z axis move.
> > >
> > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > M3 s100 (spindle start spinning)
> > > z0 (z axis moves)
> > >
> > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > Last week it was working fine, but don't know what I did wrong.
> > >
> > > www.hoefon.nl/kflop/turn_xml.xml
> > > www.hoefon.nl/kflop/IntAnaloog.c
> > >
> > > With kind regards,
> > >
> > > Frank
> > >
> >
>
Group: DynoMotion Message: 6623 From: Tom Kerekes Date: 1/30/2013
Subject: Re: A axis and spindle at same channel
Hi Tapio,

That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use.  The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...).  But not both at the same time.

I don't understand the other issue.

Regards
TK

Group: DynoMotion Message: 6625 From: frank_19_88 Date: 2/1/2013
Subject: Re: A axis and spindle at same channel
Hi TK and Tapio,

Tapio good that you joined us :)

I tried:
"
case EX_SPINON:
DefineCoordSystem(0,1,2,-1);

case EX_SPINOFF:
DefineCoordSystem(0,1,2,3);
"
And it works good for me!

With kind regards,

Frank

--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Tapio,
>
> That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use.  The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...).  But not both at the same time.
>
> I don't understand the other issue.
>
> Regards
> TK
>
>
> ________________________________
> From: tapiolarikka
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, January 30, 2013 3:06 PM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>
>  
> Hi again,
>
> Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
>
> Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
>
> Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
>
> Rgds,
> Tapio
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Thanks Tapio,
> >
> > Yes I would think that would work.  But because he has a lathe without any Y axis the calls would be
> >
> > to exclude A
> > DefineCoordSystem(0,-1,1,2);
> >
> >
> > to include A
> > DefineCoordSystem(0,-1,1,-1);
> >
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: tapiolarikka
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, January 30, 2013 11:53 AM
> > Subject: [DynoMotion] Re: A axis and spindle at same channel
> >
> >
> >  
> >
> >
> > Hi Frank/Tom,
> >
> > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> >
> > I think this could be:
> >
> > In the Spindle.c that you are using:
> >
> > case EX_SPINON:
> > DefineCoordSystem(0,1,2,-1);
> >
> > if (Direction==0)
> > {
> > printf("Spindle CW ON\n");
> > }
> > else if (Direction==1)
> > {
> > printf("Spindle CCW ON\n");
> > }
> > break;
> >
> > case EX_SPINOFF:
> > DefineCoordSystem(0,1,2,3);
> > // add homing routine for A-axis
> > printf("Spindle Stop\n");
> > break;
> > }
> >
> > I can't test the above since I haven't found time to get my
> > KFlop connected.
> >
> > I hope Tom corrects me if I'm wrong about this.
> >
> > Rgds,
> > Tapio
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Frank,
> > >  
> > > I don't really follow most of that.
> > >  
> > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > >  
> > > I don't understand why/where the Move(2,2000) Move(2,0) is needed. 
> > >  
> > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > >  
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: frank_19_88
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > >
> > >  
> > > Hi TK,
> > >
> > > I replaced the "spindle program" with "notify.c"
> > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > >
> > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > >
> > > Do I have to run the sample "spindle program.c" also with mach3?
> > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > >
> > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > >
> > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > >
> > > With kind regards,
> > >
> > > Frank
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Hi Frank,
> > > >
> > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > >
> > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'‚  Note a G1Z0 actually moves all X,Y, and A axes.
> > > >
> > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > >
> > > > We need to have a means of determining which mode you are in.ÃÆ'‚  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > >
> > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'‚  M3 and M4 would automatically exclude A from the coordinate system.ÃÆ'‚  And M5 could automatically include it.
> > > >
> > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > >
> > > > HTH
> > > > Regards
> > > > TKÃÆ'‚ 
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: frank_19_88
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi,
> > > >
> > > > When I activate A axis within kflop with:
> > > > DefineCoordSystem(0,-1,1,2);
> > > >
> > > > And open Mach3 and send gcode:
> > > > M3 S100 (spindle start spinning)
> > > > Z0
> > > > I get an error "buffer starved".(A axis disabled)
> > > > If I send:
> > > > M5
> > > > z0
> > > > The z axis move.
> > > >
> > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > M3 s100 (spindle start spinning)
> > > > z0 (z axis moves)
> > > >
> > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > Last week it was working fine, but don't know what I did wrong.
> > > >
> > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > >
> > > > With kind regards,
> > > >
> > > > Frank
> > > >
> > >
> >
>
Group: DynoMotion Message: 6627 From: tapiolarikka Date: 2/1/2013
Subject: Re: A axis and spindle at same channel
Hi Frank,

Great to hear it works. As I wrote I have personal interest on this topic.

I don't know if you need it but if you decide to add homing for spindle please report back how it works out.

Rgds,
Tapio


--- In DynoMotion@yahoogroups.com, "frank_19_88" wrote:
>
> Hi TK and Tapio,
>
> Tapio good that you joined us :)
>
> I tried:
> "
> case EX_SPINON:
> DefineCoordSystem(0,1,2,-1);
>
> case EX_SPINOFF:
> DefineCoordSystem(0,1,2,3);
> "
> And it works good for me!
>
> With kind regards,
>
> Frank
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Tapio,
> >
> > That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use.  The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...).  But not both at the same time.
> >
> > I don't understand the other issue.
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: tapiolarikka
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, January 30, 2013 3:06 PM
> > Subject: [DynoMotion] Re: A axis and spindle at same channel
> >
> >
> >  
> > Hi again,
> >
> > Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
> >
> > Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
> >
> > Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
> >
> > Rgds,
> > Tapio
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Thanks Tapio,
> > >
> > > Yes I would think that would work.  But because he has a lathe without any Y axis the calls would be
> > >
> > > to exclude A
> > > DefineCoordSystem(0,-1,1,2);
> > >
> > >
> > > to include A
> > > DefineCoordSystem(0,-1,1,-1);
> > >
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: tapiolarikka
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, January 30, 2013 11:53 AM
> > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > >
> > >
> > >  
> > >
> > >
> > > Hi Frank/Tom,
> > >
> > > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> > >
> > > I think this could be:
> > >
> > > In the Spindle.c that you are using:
> > >
> > > case EX_SPINON:
> > > DefineCoordSystem(0,1,2,-1);
> > >
> > > if (Direction==0)
> > > {
> > > printf("Spindle CW ON\n");
> > > }
> > > else if (Direction==1)
> > > {
> > > printf("Spindle CCW ON\n");
> > > }
> > > break;
> > >
> > > case EX_SPINOFF:
> > > DefineCoordSystem(0,1,2,3);
> > > // add homing routine for A-axis
> > > printf("Spindle Stop\n");
> > > break;
> > > }
> > >
> > > I can't test the above since I haven't found time to get my
> > > KFlop connected.
> > >
> > > I hope Tom corrects me if I'm wrong about this.
> > >
> > > Rgds,
> > > Tapio
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Hi Frank,
> > > >  
> > > > I don't really follow most of that.
> > > >  
> > > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > >  
> > > > I don't understand why/where the Move(2,2000) Move(2,0) is needed. 
> > > >  
> > > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > >  
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: frank_19_88
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > >
> > > >  
> > > > Hi TK,
> > > >
> > > > I replaced the "spindle program" with "notify.c"
> > > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > > >
> > > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > > >
> > > > Do I have to run the sample "spindle program.c" also with mach3?
> > > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > > >
> > > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > > >
> > > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > > >
> > > > With kind regards,
> > > >
> > > > Frank
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > > >
> > > > > Hi Frank,
> > > > >
> > > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > > >
> > > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'‚  Note a G1Z0 actually moves all X,Y, and A axes.
> > > > >
> > > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > > >
> > > > > We need to have a means of determining which mode you are in.ÃÆ'‚  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > > >
> > > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'‚  M3 and M4 would automatically exclude A from the coordinate system.ÃÆ'‚  And M5 could automatically include it.
> > > > >
> > > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > > >
> > > > > HTH
> > > > > Regards
> > > > > TKÃÆ'‚ 
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: frank_19_88
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > > Hi,
> > > > >
> > > > > When I activate A axis within kflop with:
> > > > > DefineCoordSystem(0,-1,1,2);
> > > > >
> > > > > And open Mach3 and send gcode:
> > > > > M3 S100 (spindle start spinning)
> > > > > Z0
> > > > > I get an error "buffer starved".(A axis disabled)
> > > > > If I send:
> > > > > M5
> > > > > z0
> > > > > The z axis move.
> > > > >
> > > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > > M3 s100 (spindle start spinning)
> > > > > z0 (z axis moves)
> > > > >
> > > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > > Last week it was working fine, but don't know what I did wrong.
> > > > >
> > > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > > >
> > > > > With kind regards,
> > > > >
> > > > > Frank
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 6638 From: frank_19_88 Date: 2/3/2013
Subject: Re: A axis and spindle at same channel
Hi Tapio,

If I use the gcode comands in manual mode it works good, but in automatic mode it fail some times.(A axis disabled)(mach3)

But I think I can fix it like:
"
case EX_SPINOFF:
Jog(3,0);
CheckDone(3); //wait for axis, spindle speed = 0
DefineCoordSystem(0,1,2,3);
// add homing routine for A-axis
printf("Spindle Stop\n");
break;
}
"

Also g92 a0 don't work in automatic mode (mach3).
I will try:
"
G1 G91 A180
G90 (switch back to absolute if necessary)
"

You can home the spindle axis with the same homing program as x axis.
I do use it and works good.

With kind regards,

Frank


--- In DynoMotion@yahoogroups.com, "tapiolarikka" wrote:
>
>
> Hi Frank,
>
> Great to hear it works. As I wrote I have personal interest on this topic.
>
> I don't know if you need it but if you decide to add homing for spindle please report back how it works out.
>
> Rgds,
> Tapio
>
>
> --- In DynoMotion@yahoogroups.com, "frank_19_88" wrote:
> >
> > Hi TK and Tapio,
> >
> > Tapio good that you joined us :)
> >
> > I tried:
> > "
> > case EX_SPINON:
> > DefineCoordSystem(0,1,2,-1);
> >
> > case EX_SPINOFF:
> > DefineCoordSystem(0,1,2,3);
> > "
> > And it works good for me!
> >
> > With kind regards,
> >
> > Frank
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Tapio,
> > >
> > > That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use.  The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...).  But not both at the same time.
> > >
> > > I don't understand the other issue.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: tapiolarikka
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, January 30, 2013 3:06 PM
> > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > >
> > >
> > >  
> > > Hi again,
> > >
> > > Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
> > >
> > > Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
> > >
> > > Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
> > >
> > > Rgds,
> > > Tapio
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Thanks Tapio,
> > > >
> > > > Yes I would think that would work.  But because he has a lathe without any Y axis the calls would be
> > > >
> > > > to exclude A
> > > > DefineCoordSystem(0,-1,1,2);
> > > >
> > > >
> > > > to include A
> > > > DefineCoordSystem(0,-1,1,-1);
> > > >
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: tapiolarikka
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, January 30, 2013 11:53 AM
> > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > >
> > > >
> > > >  
> > > >
> > > >
> > > > Hi Frank/Tom,
> > > >
> > > > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> > > >
> > > > I think this could be:
> > > >
> > > > In the Spindle.c that you are using:
> > > >
> > > > case EX_SPINON:
> > > > DefineCoordSystem(0,1,2,-1);
> > > >
> > > > if (Direction==0)
> > > > {
> > > > printf("Spindle CW ON\n");
> > > > }
> > > > else if (Direction==1)
> > > > {
> > > > printf("Spindle CCW ON\n");
> > > > }
> > > > break;
> > > >
> > > > case EX_SPINOFF:
> > > > DefineCoordSystem(0,1,2,3);
> > > > // add homing routine for A-axis
> > > > printf("Spindle Stop\n");
> > > > break;
> > > > }
> > > >
> > > > I can't test the above since I haven't found time to get my
> > > > KFlop connected.
> > > >
> > > > I hope Tom corrects me if I'm wrong about this.
> > > >
> > > > Rgds,
> > > > Tapio
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > > >
> > > > > Hi Frank,
> > > > >  
> > > > > I don't really follow most of that.
> > > > >  
> > > > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > > >  
> > > > > I don't understand why/where the Move(2,2000) Move(2,0) is needed. 
> > > > >  
> > > > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > > >  
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: frank_19_88
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > > >
> > > > >  
> > > > > Hi TK,
> > > > >
> > > > > I replaced the "spindle program" with "notify.c"
> > > > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > > > >
> > > > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > > > >
> > > > > Do I have to run the sample "spindle program.c" also with mach3?
> > > > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > > > >
> > > > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > > > >
> > > > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > > > >
> > > > > With kind regards,
> > > > >
> > > > > Frank
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > > > >
> > > > > > Hi Frank,
> > > > > >
> > > > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > > > >
> > > > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'‚  Note a G1Z0 actually moves all X,Y, and A axes.
> > > > > >
> > > > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > > > >
> > > > > > We need to have a means of determining which mode you are in.ÃÆ'‚  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > > > >
> > > > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'‚  M3 and M4 would automatically exclude A from the coordinate system.ÃÆ'‚  And M5 could automatically include it.
> > > > > >
> > > > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > > > >
> > > > > > HTH
> > > > > > Regards
> > > > > > TKÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: frank_19_88
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > > > >
> > > > > >
> > > > > > ÃÆ'‚ 
> > > > > > Hi,
> > > > > >
> > > > > > When I activate A axis within kflop with:
> > > > > > DefineCoordSystem(0,-1,1,2);
> > > > > >
> > > > > > And open Mach3 and send gcode:
> > > > > > M3 S100 (spindle start spinning)
> > > > > > Z0
> > > > > > I get an error "buffer starved".(A axis disabled)
> > > > > > If I send:
> > > > > > M5
> > > > > > z0
> > > > > > The z axis move.
> > > > > >
> > > > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > > > M3 s100 (spindle start spinning)
> > > > > > z0 (z axis moves)
> > > > > >
> > > > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > > > Last week it was working fine, but don't know what I did wrong.
> > > > > >
> > > > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > > > >
> > > > > > With kind regards,
> > > > > >
> > > > > > Frank
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 6640 From: Tom Kerekes Date: 2/3/2013
Subject: Re: A axis and spindle at same channel
Hi Frank,

I don't really follow that, but I did want to point out a bug.

To wait for the spindle to stop you need a wait loop that keeps looping while the axis is not done.  So change:

CheckDone(3); //wait for axis, spindle speed = 0

to

while (!CheckDone(3)) ; //wait for axis, spindle speed = 0

Regards
TK

Group: DynoMotion Message: 6699 From: tapiolarikka Date: 2/11/2013
Subject: Re: A axis and spindle at same channel
Hi Tom!

How does Kflop handle the position of A-axis when decoupled/coupled
with coordinate system i.e. is it enough to orientate/home the axis in reference to machine frame once on power up or does it have to be done every time when returning from spindle to coordinated axis?.

I'm asking this because I have C5 collet chuck that is spring closed and opened pneumatic lever, so I need to retain the orientation to frame.

Is there any difference in Kanalog JP1 and JP2 encoder inputs other than JP2 used for encoders being not available for GPIO?

I have need for 4 axes + servo/spindle so total of 5 encoders, and I'd like to use the Z-pulses for homing.

Rgds,
Tapio

--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Frank,
>
> I don't really follow that, but I did want to point out a bug.
>
> To wait for the spindle to stop you need a wait loop that keeps looping while the axis is not done.  So change:
>
> CheckDone(3); //wait for axis, spindle speed = 0
>
> to
>
> while (!CheckDone(3)) ; //wait for axis, spindle speed = 0
>
> Regards
> TK
>
>
>
> ________________________________
> From: frank_19_88
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, February 3, 2013 12:07 PM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>
>  
> Hi Tapio,
>
> If I use the gcode comands in manual mode it works good, but in automatic mode it fail some times.(A axis disabled)(mach3)
>
> But I think I can fix it like:
> "
> case EX_SPINOFF:
> Jog(3,0);
> CheckDone(3); //wait for axis, spindle speed = 0
> DefineCoordSystem(0,1,2,3);
> // add homing routine for A-axis
> printf("Spindle Stop\n");
> break;
> }
> "
>
> Also g92 a0 don't work in automatic mode (mach3).
> I will try:
> "
> G1 G91 A180
> G90 (switch back to absolute if necessary)
> "
>
> You can home the spindle axis with the same homing program as x axis.
> I do use it and works good.
>
> With kind regards,
>
> Frank
>
> --- In DynoMotion@yahoogroups.com, "tapiolarikka" wrote:
> >
> >
> > Hi Frank,
> >
> > Great to hear it works. As I wrote I have personal interest on this topic.
> >
> > I don't know if you need it but if you decide to add homing for spindle please report back how it works out.
> >
> > Rgds,
> > Tapio
> >
> >
> > --- In DynoMotion@yahoogroups.com, "frank_19_88" wrote:
> > >
> > > Hi TK and Tapio,
> > >
> > > Tapio good that you joined us :)
> > >
> > > I tried:
> > > "
> > > case EX_SPINON:
> > > DefineCoordSystem(0,1,2,-1);
> > >
> > > case EX_SPINOFF:
> > > DefineCoordSystem(0,1,2,3);
> > > "
> > > And it works good for me!
> > >
> > > With kind regards,
> > >
> > > Frank
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Hi Tapio,
> > > >
> > > > That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use.  The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...).  But not both at the same time.
> > > >
> > > > I don't understand the other issue.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: tapiolarikka
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, January 30, 2013 3:06 PM
> > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > >
> > > >
> > > >  
> > > > Hi again,
> > > >
> > > > Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
> > > >
> > > > Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
> > > >
> > > > Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
> > > >
> > > > Rgds,
> > > > Tapio
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > > >
> > > > > Thanks Tapio,
> > > > >
> > > > > Yes I would think that would work.  But because he has a lathe without any Y axis the calls would be
> > > > >
> > > > > to exclude A
> > > > > DefineCoordSystem(0,-1,1,2);
> > > > >
> > > > >
> > > > > to include A
> > > > > DefineCoordSystem(0,-1,1,-1);
> > > > >
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: tapiolarikka
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, January 30, 2013 11:53 AM
> > > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > > >
> > > > >
> > > > >  
> > > > >
> > > > >
> > > > > Hi Frank/Tom,
> > > > >
> > > > > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> > > > >
> > > > > I think this could be:
> > > > >
> > > > > In the Spindle.c that you are using:
> > > > >
> > > > > case EX_SPINON:
> > > > > DefineCoordSystem(0,1,2,-1);
> > > > >
> > > > > if (Direction==0)
> > > > > {
> > > > > printf("Spindle CW ON\n");
> > > > > }
> > > > > else if (Direction==1)
> > > > > {
> > > > > printf("Spindle CCW ON\n");
> > > > > }
> > > > > break;
> > > > >
> > > > > case EX_SPINOFF:
> > > > > DefineCoordSystem(0,1,2,3);
> > > > > // add homing routine for A-axis
> > > > > printf("Spindle Stop\n");
> > > > > break;
> > > > > }
> > > > >
> > > > > I can't test the above since I haven't found time to get my
> > > > > KFlop connected.
> > > > >
> > > > > I hope Tom corrects me if I'm wrong about this.
> > > > >
> > > > > Rgds,
> > > > > Tapio
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > > > >
> > > > > > Hi Frank,
> > > > > > ÃÆ'‚ 
> > > > > > I don't really follow most of that.
> > > > > > ÃÆ'‚ 
> > > > > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > > > > ÃÆ'‚ 
> > > > > > I don't understand why/where the Move(2,2000) Move(2,0) is needed.ÃÆ'‚ 
> > > > > > ÃÆ'‚ 
> > > > > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > > > > ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: frank_19_88
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > > > >
> > > > > > ÃÆ'‚ 
> > > > > > Hi TK,
> > > > > >
> > > > > > I replaced the "spindle program" with "notify.c"
> > > > > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > > > > >
> > > > > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > > > > >
> > > > > > Do I have to run the sample "spindle program.c" also with mach3?
> > > > > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > > > > >
> > > > > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > > > > >
> > > > > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > > > > >
> > > > > > With kind regards,
> > > > > >
> > > > > > Frank
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > > > > >
> > > > > > > Hi Frank,
> > > > > > >
> > > > > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > > > > >
> > > > > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'Æ'‚ÃÆ'‚  Note a G1Z0 actually moves all X,Y, and A axes.
> > > > > > >
> > > > > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > > > > >
> > > > > > > We need to have a means of determining which mode you are in.ÃÆ'Æ'‚ÃÆ'‚  One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > > > > >
> > > > > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'Æ'‚ÃÆ'‚  M3 and M4 would automatically exclude A from the coordinate system.ÃÆ'Æ'‚ÃÆ'‚  And M5 could automatically include it.
> > > > > > >
> > > > > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > > > > >
> > > > > > > HTH
> > > > > > > Regards
> > > > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: frank_19_88
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi,
> > > > > > >
> > > > > > > When I activate A axis within kflop with:
> > > > > > > DefineCoordSystem(0,-1,1,2);
> > > > > > >
> > > > > > > And open Mach3 and send gcode:
> > > > > > > M3 S100 (spindle start spinning)
> > > > > > > Z0
> > > > > > > I get an error "buffer starved".(A axis disabled)
> > > > > > > If I send:
> > > > > > > M5
> > > > > > > z0
> > > > > > > The z axis move.
> > > > > > >
> > > > > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > > > > M3 s100 (spindle start spinning)
> > > > > > > z0 (z axis moves)
> > > > > > >
> > > > > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > > > > Last week it was working fine, but don't know what I did wrong.
> > > > > > >
> > > > > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > > > > >
> > > > > > > With kind regards,
> > > > > > >
> > > > > > > Frank
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 6700 From: Tom Kerekes Date: 2/11/2013
Subject: Re: A axis and spindle at same channel
Hi Tapio:
 
There is no loss of A position when including/excluding it from the Coordinated System.
 
No there is no difference between Kanalog JP1 and JP2 other than JP1 maps to KFLOP encoders 0-3 and JP2 maps to 4-7.
 
The 16 differential inputs should be enough.  5 Axes x 3 differential signals each (A,B,Z) = 15 differential inputs required.
 
Zs can be connected to any unused A or B input.
 
HTH
Regards
TK 

Group: DynoMotion Message: 6701 From: Tom Kerekes Date: 2/11/2013
Subject: Re: A axis and spindle at same channel
Hi Tapio:
 
There is no loss of A position when including/excluding it from the Coordinated System.
 
No there is no difference between Kanalog JP1 and JP2 other than JP1 maps to KFLOP encoders 0-3 and JP2 maps to 4-7.
 
The 16 differential inputs should be enough.  5 Axes x 3 differential signals each (A,B,Z) = 15 differential inputs required.
 
Zs can be connected to any unused A or B input.
 
HTH
Regards
TK